#ifndef CSERVER_SESSION_CONSOLE_H
#define CSERVER_SESSION_CONSOLE_H
#include <boost/asio/io_service.hpp>
#include <boost/asio/spawn.hpp>

namespace csrv{
	class Context;
	class Console : public std::enable_shared_from_this<Console>
	{
		Context& context;
		public:
		explicit Console(Context& ctx);
		void start();
		private:
		void do_console_(boost::asio::yield_context yield);
	};
	using ConsolePtr = std::shared_ptr<Console>;

}

#endif //end CSERVER_SESSION_CONSOLE_H


